package loop.functions;

import action.Action;
import function.Predicate;

/**
 *
 * @author g1wshimu
 */
public class LoopFunctions {
    
    private LoopFunctions() {
    }
    
    public static void doUntil(Action doAction, Predicate untilCondition) {
        while(!untilCondition.evaluate()) {
            doAction.run();
        }
    }
}
